<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<div class="chatter-block">
	<div class="post" id="${post.id}" >
		<img src="${post.poster.photo.encode}" onerror="this.src='../images/noprofile.jpg'" alt="user photo"/>
		<div class="postText">
			<a href="#" class="poster">${post.poster.fName}</a>
			<span class="text">${post.postText}</span>
			<span class="date">${post.postDate}</span>
			<%-- <a href="#">Comment </a><a href="#"> Like</a> --%>
		</div>
		<div class="comments">
			<c:forEach items="${post.comments}" var="comment">
			<div class="comment">
				<img src="${comment.commenter.photo.encode}" onerror="this.src='../images/noprofile.jpg'" alt="user photo"/>
				<div class="postText">
					<a href="#" class="poster">${comment.commenter.fName}</a>
					<span class="text">${comment.commentText}</span>
					<span class="date">${comment.commentDate}</span>
					<%-- <a href="#">Comment </a><a href="#"> Like</a> --%>
				</div>
			</div>
			</c:forEach>
		</div>
	</div>
</div>